package com.silence.thread.safe;

public class MoneyThread extends Thread{
    private  Account acc;
    public MoneyThread(Account acc,String name) {
        super(name);
        this.acc = acc;
    }

    @Override
    public void run() {
        acc.drawMoney(10.0);
        System.out.println();
    }
}
